inotify_read
(PECL inotify >= 0.1.2)
inotify_read — Read events from an inotify instance
Descripción
array inotify_read
( resource $inotify_instance
)
Lista de parámetros
-
inotify_instance
-
Resource returned by
inotify_init()
Valores retornados
An array of inotify events or FALSE if no events was pending and
inotify_instance
is non-blocking. Each event is an array with the following keys:
- wd is a watch descriptor returned by
inotify_add_watch()
- mask is a bit mask of events
- cookie is a unique id to connect related events (e.g. IN_MOVE_FROM
and IN_MOVE_TO)
- name is the name of a file (e.g. if a file was modified in a
watched directory)
Ver también
- inotify_init() - Initialize an inotify instance
- stream_select() - Ejecuta el equivalente al llamado de sistema select() en la
matriz de secuencias dada, con un tiempo de espera especificado por
tv_sec y tv_usec
- stream_set_blocking() - Establecer modo de bloqueo/no-bloqueo sobre una
secuencia
- inotify_queue_len() - Return a number upper than zero if there are pending events